package com.stylefeng.guns.modular.channel_promote_info.dao;

import com.stylefeng.guns.modular.channel_promote_info.model.ChannelSignCountDO;
import com.stylefeng.guns.modular.channel_promote_info.model.ChannelSignDO;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * <p>
 *  Mapper 接口
 * </p>
 *
 * @author stylefeng
 * @since 2020-06-29
 */
public interface ChannelPromoteInfoMapper {
    //渠道签包统计
    List<ChannelSignDO> findChannelSignInfo(@Param("userId") Integer userId,
                                            @Param("start") Integer start,
                                            @Param("count") Integer count);
    //查询渠道签包设备总数量
    Integer findChannelSignTotalCount(@Param("userId") Integer userId);
    //渠道签包设备数量
    List<ChannelSignCountDO> findChannelSignCount(@Param("userId") Integer userId,
                                                  @Param("beginTime") String beginTime,
                                                  @Param("endTime") String endTime);
}
